<template>
    <div>
        <h1>新闻详情页面</h1>
        接收到的参数值：{{$route.params.abc}},{{$route.params.bcd}}，{{$route.params.cde}}
    </div>
</template>

<script>
export default {
    beforeRouteEnter:function(to,from,next){
            console.log("进路由之前");
            next();
    },
    beforeRouteUpdate:function(to,from,next){
        console.log("复用了");
        next();  
    },
    beforeRouteLeave:function(to,from,next){
        console.log("离开路由;去另外一个地方："+to.path);
        next();
    }
}
</script>

<style scoped>

</style>